import request from '@/utils/request'

let api ={};

api.upload = (file)=>{
    return request({
        url:"/api/member/upload/upload",
        method:"post",
        data:file
    });
}

api.uploadAvatar = (avatar)=>{
    return request({
        url:"/api/member/upload/uploadAvatar",
        method:"post",
        data:avatar
    });
}


api.download = (guid)=>{
    return request({
        url:`/api/member/upload/download/${guid}`,
        method:get
    });
}

export default api;